package cn.tedu.logistics.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import cn.tedu.logistics.bean.Manager;
import cn.tedu.logistics.dao.ManagerDao;


@Service
public class ManagerServiceImpl implements ManagerService{

	@Autowired
	private ManagerDao managerMapper;


	public Manager selectByManager(String admin) {
		Manager manager = managerMapper.selectByName(admin);
		return manager;
	}


	public void updataByAdmin(String admin, String PWD) {
		managerMapper.updatePWD(admin, PWD);
	}


	@Override
	public void deleteById(Integer id) {
		managerMapper.deleteById(id);
	}


}
